package lab02.test05;

/**
 * Created by admin on 2017/10/14.
 */
public class Ladder {
    double upSide;
    double downSide ;
    double height;
    double area;
    Ladder(double upSide,double downSide,double height){
        this.upSide=upSide;
        downSide=downSide;
        this.height=height;
    }
    //行为
    double area(){
        area=(upSide+downSide)*height/2;
        System.out.println("梯形的面积是："+area);
        return  area;
    }
}
